package com.gitee.xhs.customWaterMark;

import com.gitee.xhs.sampleRecod.transactionRecord.Transaction;
import org.apache.flink.api.common.eventtime.TimestampAssigner;
import org.apache.flink.api.common.eventtime.TimestampAssignerSupplier;

/**
 * @author BigHead
 * @date 2022/7/15 16:24
 * @description CustomTimestampAssignerSupplier
 */
public class CustomTimestampAssignerSupplier implements TimestampAssignerSupplier<Transaction> {

    @Override
    public TimestampAssigner<Transaction> createTimestampAssigner(Context context) {
        return new CustomSerializableTimestampAssigner();
    }

}
